package com.itheima.service.impl;

import com.itheima.dao.AccountDao;
import com.itheima.service.AccountService;

public class AccountServiceImpl implements AccountService {

    private AccountDao accountDao;

    public void setAccountDao(AccountDao accountDao){
        this.accountDao=accountDao;
    }

    @Override
    public void transfer(String outMan, String inMan, double money) {

        accountDao.out(outMan,money);
        //int i=1/0;
        accountDao.in(inMan,money);

    }
}
